﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MNNUTEM
{
    public partial class mensaje : Form
    {
        public mensaje(string mensaje, int ancho, Color color)
        {
            InitializeComponent();

          
            label1.Text = mensaje;
            this.BackColor = color;
            this.Width = label1.Width + 145;
            Show();
            TopMost = true;
            StartPosition = FormStartPosition.CenterParent;
            Point p = new Point((ancho - label1.Width) / 2, 300);
            Location = p;
            Timer timer1 = new Timer();
            timer1.Interval = 2000;
            timer1.Tick += new EventHandler(timer1_Tick);
            timer1.Enabled = true;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {

            Visible = false;
        }

        private void mensaje_Load(object sender, EventArgs e)
        {

        }
    }
}
